x86/CPUID: don't use UB shift when library is built as 32-bit
authorJan Beulich <jbeulich@suse.com>
Tue, 10 Nov 2020 13:39:03 +0000 (14:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Nov 2020 13:39:03 +0000 (14:39 +0100)
commitdb1a9fdd554cb1d8a7099af7925318fc06c6875b
treed2187700328e5b4de9e729a3d26b4d495d9b7be3
parentb5ad37f8e9284cc147218f7a5193d739ae7b956f
x86/CPUID: don't use UB shift when library is built as 32-bit

At least the insn emulator test harness will continue to be buildable
(and ought to continue to be usable) also as a 32-bit binary. (Right now
the CPU policy test harness is, too, but there it may be less relevant
to keep it functional, just like e.g. we don't support fuzzing the insn
emulator in 32-bit mode.) Hence the library code needs to cope with
this.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/lib/x86/cpuid.c